import request from '@/utils/request'

// 获取展示图列表
export function getBinnerList(pro_id) {
  return request({
    url: '/wuye/binner',
    method: 'get',
    query: {
      pro_id
    }
  })
}

// 添加展示图
export function createBinner(params) {
  return request({
    url: '/wuye/binner',
    method: 'post',
    data: params
  })
}

// 删除展示图
export function delBinner(id) {
  return request({
    url: '/wuye/binner/' + id,
    method: 'delete'
  })
}
